package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 物流费模板
 * </p>
 * @author hua
 * @since 2024-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_freight_temp")
public class FreightTempDo extends Model<FreightTempDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "tenant_id", fill = FieldFill.INSERT)
    private Long tenantId;

    @TableField("freight_temp_name")
    private String freightTempName;

    @TableField("channel_id")
    private Long channelId;

    @TableField("type")
    private String type;

    @TableField("status")
    private int status;


    @TableField("currency_code")
    private String currencyCode;

    /**
     * 单位：cm in oz
     */
    @TableField("size_unit")
    private String sizeUnit;

    /**
     * 体积重计算方式 0体积重 1三边和 2 不计算
     */
    @TableField("volume_weight_calculate_way")
    private Integer volumeWeightCalculateWay;

    /**
     * 体积重计算条件 0 全部 1大于一立方英尺
     */
    @TableField("volume_weight_calculate_condition")
    private Integer volumeWeightCalculateCondition;

    /**
     * 体积重系数
     */
    @TableField("coefficient")
    private Integer coefficient;

    /**
     * 重量进位 0 进位 1不进位
     */
    @TableField("carry_weight")
    private Integer carryWeight;

    /**
     * 尺寸进位 0 进位 1不进位
     */
    @TableField("carry_bit")
    private Integer carryBit;

    @TableField("tips")
    private String tips;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private Long createBy;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
